package com.git.bds.mr.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;


/**
 * 性别
 *
 * @author 成大事
 * @since 2022/09/19
 */
@Getter
public enum Gender {

    WOMAN(0,"女"),

    MAN(1,"男");

    @EnumValue
    private final Integer key;

    @JsonValue
    private final String value;

    Gender(Integer key, String value){
        this.key = key;
        this.value = value;
    }


    @Override
    public String toString() {
        return this.value;
    }
}
